package constant

const (
	WzGamesEnv = "wzgames_boot"
)

var (
	WzBasePath          string // 根
	RPCxBasePath        string // rpcx
	CcNodesRoot         string // 节点配置根路径
	CcCommRoot          string // 基础配置根路径
	CcBaseRoot          string
	CcB4GRoot           string
	CcInstGRoot         string // 游戏实例根路径
	CcInstanceAviator   string // 小飞机实例
	CcInstanceRoulette  string // 新轮盘实例
	CcAirCraft          string // 小飞机当前轮次和状态
	CcRoulette          string // 新轮盘当前轮次和状态
	CcInstanceG8        string // G8实例
	CcNodeRpcRegPath    string
	CcAviatorElectPath  string // 小飞机Avtower播报Master选举
	CcRouletteElectPath string // 新轮盘Routower播报Master选举
	CcBetTowerElectPath string // 流水生成Master选举
	CcScratchOff        string
)

func InitEnv(env EnvType) {
	envStr := string(env)
	WzBasePath = "/wzgames_" + envStr + "_base"
	RPCxBasePath = "/wzgames_" + envStr + "/rpcx"

	CcNodesRoot = WzBasePath + "/nodes"
	CcCommRoot = WzBasePath + "/common"
	CcBaseRoot = WzBasePath + "/base"
	CcB4GRoot = WzBasePath + "/b4g"
	CcInstGRoot = WzBasePath + "/instances"

	CcInstanceAviator = CcInstGRoot + "/aviator"
	CcInstanceG8 = CcInstGRoot + "/g8"
	CcInstanceRoulette = CcInstGRoot + "/roulette"
	CcNodeRpcRegPath = CcBaseRoot + "/servs/rpc"

	CcAirCraft = WzBasePath + "/aircraft"
	CcRoulette = WzBasePath + "/roulette"

	CcScratchOff = WzBasePath + "/scratchoff"

	CcAviatorElectPath = WzBasePath + "/av_elect"
	CcRouletteElectPath = WzBasePath + "/roulette_elect"
	CcBetTowerElectPath = WzBasePath + "/betower_elect"
}

const (
	MysqlOfIDC      = "wz-id"
	MysqlOfAdmin    = "wz-admin"
	MysqlOfAviator  = "wz-aviator"
	MysqlOfUser     = "wz-user"
	MysqlOfWallet   = "wz-wallet"
	MysqlOfBHistory = "wz-b-history"
	MysqlOfRoulette = "wz-roulette"
)
